<section id="main-content">
  <section class="wrapper">
    <!--state overview end-->
    <div class="row">
      <div class="col-lg-12">
        <section class="panel">
          <header class="panel-heading">
            部门信息
          </header>
          <div class="panel-body">
            <div class="form-group customerForm">
              <label class="col-sm-2 control-label">公司</label>
              <div class="col-sm-10">
                <select ng-model="dept.companyCode" class="form-control" ng-change="changeDept(dept.companyCode)">
                  <option ng-repeat="x in companySelect" value="{{x.fileCategoriesCode}}">{{x.fileCategoriesName}}
                  </option>
                </select>
              </div>
            </div>
            <div class="form-group customerForm">
              <label class="col-sm-2 control-label">上级部门</label>
              <div class="col-sm-10">
                <select ng-model="dept.superiorDepartCode" class="form-control"
                  ng-change="deptChange(dept.superiorDepartCode)">
                  <option ng-repeat="x in departmentSelect" value="{{x.departmentId}}">{{x.department}}
                  </option>
                </select>
              </div>
            </div>
            <div class="form-group customerForm">
              <label class="col-sm-2 control-label">部门名称</label>
              <div class="col-sm-10">
                <input type="text" class="form-control" ng-model="dept.departmentName">
              </div>
            </div>
            <div class="form-group customerForm">
              <label class="col-sm-2 control-label">部门code</label>
              <div class="col-sm-10">
                <input type="text" class="form-control" ng-model="dept.departmentCode">
              </div>
            </div>
            <div class="form-group customerForm">
              <label class="col-sm-2 control-label">部门负责人</label>
              <div class="col-sm-10">
                <input type="text" list="browsers" class="form-control" ng-model="dept.principalName"
                  ng-change="relatedUser()" placeholder="自动检索，查询结果较多时候，系统不显示，需要尽量多输入相关字段">
                <datalist id="browsers" ng-model="selected">
                  <option ng-repeat="x in userSelect" value="{{x.userName}}({{x.userId}})">
                </datalist>
                `
              </div>
            </div>
            <p class="default-buttons">
              <a href="javascript:void(0);" class="button-back btn btn-info" onclick="window.history.back()">返回</a>
              <a href="javascript:void(0);" class="button-next  btn btn-success" ng-show="submitted"
                ng-click="submits()">确认提交</a>
            </p>
          </div>
        </section>
      </div>
    </div>
  </section>
</section>
<!-- 当前页面js文件引入 -->
<script src="js/office/index.js"></script>